package com.mao.gys.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mao.gys.entity.Supplier;
import com.mao.gys.qpage.QPage;
import com.mao.gys.mapper.SupplierMapper;
import com.mao.gys.service.ISupplierService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SupplierServiceImpl extends ServiceImpl<SupplierMapper, Supplier> implements ISupplierService {


    @Override
    public IPage getPageList(QPage qPage, Supplier obj) {
        IPage iPage = new Page(qPage.getPage(), qPage.getRows());
        List<Supplier> mapList = this.baseMapper.getPageList(iPage,obj);
        return iPage.setRecords(mapList);
    }


}
